<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Result</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.css">
<link href="../style.css" rel="stylesheet" />
</head>
<body onload="PR.prettyPrint()">
<pre class="prettyprint lang-java">
public class Result implements Serializable{

    private int code; //错误代码
    private String msg; //提示信息
    private Book data; //数据

    public int getCode(){
        return code;
    }

    public void setCode(int code){
        this.code = code;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

    public Book getData(){
        return data;
    }

    public void setData(Book data){
        this.data = data;
    }

}
</pre>


<pre class="prettyprint lang-java">
public class Book implements Serializable{

    private int id; //pk, 自增,不传
    private String userId; //发布人 id,自动填写,不传
    private String bname; //书名
    private double price; //价格
    private String describle; //描述
    private String producer; //出版社
    private String pic; //图片 url
    private String whiteList; //白名单,不传,后端自动维护
    private String code; //条形码 code

    public int getId(){
        return id;
    }

    public void setId(int id){
        this.id = id;
    }

    public String getUserId(){
        return userId;
    }

    public void setUserId(String userId){
        this.userId = userId;
    }

    public String getBname(){
        return bname;
    }

    public void setBname(String bname){
        this.bname = bname;
    }

    public double getPrice(){
        return price;
    }

    public void setPrice(double price){
        this.price = price;
    }

    public String getDescrible(){
        return describle;
    }

    public void setDescrible(String describle){
        this.describle = describle;
    }

    public String getProducer(){
        return producer;
    }

    public void setProducer(String producer){
        this.producer = producer;
    }

    public String getPic(){
        return pic;
    }

    public void setPic(String pic){
        this.pic = pic;
    }

    public String getWhiteList(){
        return whiteList;
    }

    public void setWhiteList(String whiteList){
        this.whiteList = whiteList;
    }

    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }

}
</pre>



<script src="https://cdn.jsdelivr.net/npm/google-code-prettify@1.0.5/bin/prettify.min.js"></script>
</body>
</html>